let a = "-1-2-3-4-"
console.log( a.split('-') ) // 返回数组 [ '', '1', '2', '3', '4', '' ]